s = "()[]{}<>"
k_open = 0
k_close = 0
for i in range(len(s)):
    if  s[i]  == "(" :
        k_open +=1
    if s[i]  == ")":
          k_close +=1
if k_open == k_close:
    print('Верно')
    
if k_open != k_close:

   print('Не верно')